<?php


include "sendquery_db.php";

$username = $_GET['updater'];
$data = $_GET['up_data'];
$time = $_GET['up_time'];
$room = $_GET['up_dataroom'];

$up_time = date("Ymdhis");


$db = dbservice::getInstance();

$result = $db -> sendquery("update roomdata set data = '0' , sendtime='$up_time' where roomnum=$room and data='$data' and sendtime=$time and username='$username'");

 echo "suc";
?>
